package com.yhy.produce.callback;

import com.yhy.common.rabbitmq.callback.ReturnsCallback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.ReturnedMessage;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MqReturnsCallback extends ReturnsCallback {

    @Override
    protected void compensate(ReturnedMessage returned) {
        log.error("消息到达queue失败。自定义补偿");
    }

}
